<ul data-role="listview" data-inset="true" data-theme="c" data-dividertheme="a">
	<li data-role="list-divider">Overview</li>
	<li><%= link_to "All computers (#{@allComputerSize})", :action => :allComputers%></li>
	<li><%= link_to "<span style='color: #56A00E;'>Computers Up (#{@activeComputerSize})</span>", :action => :activeComputers%></li>	
	<li><%= link_to "<span style='color: #D33C3C;'>Computers Down (#{@inactiveComputerSize})</span>", :action => :inactiveComputers%></li>
	<li><%= link_to "<span style='color: #E88430;'>Computers  in Operation (#{@operationComputerSize})</span>", :action => :operationComputers%></li>
</ul>	
<nav>		
	<ul data-role="listview" data-inset="true" data-theme="c" data-dividertheme="a">
		<li data-role="list-divider">Companies</li>
		<% @companies.each do |company| %>
			<% if company.rooms.size == 0 %>
				<li><%= link_to "#{company.name} (No rooms)", :action => :showRooms, :id => company.id%></li>
			<% else %>
				<% if company.rooms.size > 1 %>
			    	<li><%= link_to "#{company.name} (#{company.rooms.size} rooms)", :action => :showRooms, :id => company.id%></li>
				<% else %>
			    	<li><%= link_to "#{company.name} (#{company.rooms.size} room)", :action => :showRooms, :id => company.id%></li>
			    <% end %>		
			<% end %>			
		<%end%>
	</ul>
</nav>